package shiqi.chain.handler;

import org.springframework.stereotype.Component;
import shiqi.chain.code.ContextRequest;
import shiqi.chain.code.ContextResponse;
import shiqi.chain.code.Handler;
import shiqi.dto.ReqDTO;
import shiqi.dto.ResDTO;

/**
 * @author shiqi
 * @version 1.0.0
 * @ClassName ChainSecondHandler.java
 * @Description
 * @createTime 2022-05-10
 */
@Component
public class ChainSecondHandler extends Handler {
    @Override
    public void doHandler(ContextRequest request, ContextResponse response) {
        ReqDTO reqDTO = (ReqDTO)request;
        System.out.println(reqDTO.getName());
        ResDTO resDTO = (ResDTO)response;
        //resDTO.setName("222");
    }
}
